IModel.GetRelationsOfWhere method

Namespace: NextDesign.Core

Description

Gets the association with the given model that meets the specified conditions of this instance. This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.

The relation of acquisition target can be arbitrarily determined by the evaluation function.

argument

Name Type Description
opposite IModel Other model
null cannot be specified.
predicate Func < IRelationship, IField, bool > Related Evaluation Function
1st Argument: Related Instance
2nd Argument: Associated Field
Return Value: In case of relation to be acquired True

If null is specified, get all associations with the given model.

Return value

  • IRelationshipCollection

Exception

Name Exception Class Description
Invalid argument ExtensionArgumentException If null is specified for opposite